package xiangmu.schoolpaper.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import xiangmu.schoolpaper.pojo.DTO.LoginDTO;
import xiangmu.schoolpaper.pojo.entity.User;

@Mapper
public interface LoginMapper {
    @Select("select * from user where account = #{account} and password = #{password} and status=1 and del_flag=1")
    User login(LoginDTO loginDTO);
}

